package xyz.lxbq.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xyz.lxbq.mapper.LoginlogMapper;
import xyz.lxbq.pojo.Loginlog;
import xyz.lxbq.service.LoginlogService;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author XuHu
 * @version 1.0
 * @date 2020/10/15 10:49
 */
@Service
public class LoginlogServiceImpl implements LoginlogService {
    @Autowired
    LoginlogMapper loginlogMapper;

    @Override
    public int addLoginLog(Loginlog loginlog) {
        return loginlogMapper.addLoginLog(loginlog);
    }

    @Override
    public List<Loginlog> getlastloginlog(String no) {
        return loginlogMapper.getlastloginlog(no);
    }

}
